Open
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR introduces a comprehensive Analytics API implementation to the Planet Python SDK, providing complete client support for accessing Planet's Analytics feeds and results. The implementation follows the established SDK patterns and includes both async and sync clients with CLI integration.
Key Changes
- Added asynchronous AnalyticsClient with full CRUD operations for feeds, subscriptions, and results
- Created synchronous AnalyticsAPI wrapper for blocking operations
- Implemented comprehensive CLI interface with commands for all Analytics operations
Reviewed Changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| planet/clients/analytics.py | Core async Analytics client with feed, subscription, and result operations |
| planet/sync/analytics.py | Synchronous wrapper providing blocking API interface |
| planet/cli/analytics.py | Complete CLI implementation with search, filtering, and download capabilities |
| planet/clients/init.py | Added Analytics client to module exports |
| planet/sync/client.py | Integrated Analytics API into main Planet client |
| planet/cli/cli.py | Added Analytics commands to main CLI |
| tests/unit/test_*.py | Comprehensive unit tests for all components |
| tests/integration/test_*.py | Integration tests for client and CLI functionality |
Comments suppressed due to low confidence (1)
tests/unit/test_analytics_sync.py:222
- The parameter name 'format' shadows the built-in function. Consider renaming it to 'result_format' or 'file_format' to avoid confusion.
assert result == stats_data
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR provides a complete, production-ready Analytics API client that seamlessly integrates with the existing Planet Python SDK architecture and follows all established patterns and conventions. Generated with help from Claude Code:
Ticket
#1189
Key Features
Analytics Feeds:
Analytics Subscriptions:
Analytics Results:
CLI Interface:
Details
Integration
Testing